package com.allwees.bs.c.module.order.entity;

import com.allwees.bs.core.model.order.entity.OrderFlowModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "o_order_flow")
public class OrderFlowEntity extends OrderFlowModel {

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "order_uuid",referencedColumnName = "uuid")
    private OrderEntity order;
}
